package com.ysd.crm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ysd.crm.entity.Userchecks;
import com.ysd.crm.entity.seach.UserchecksSearch;
import com.ysd.crm.mapper.UserchecksMapper;
import com.ysd.crm.service.UserchecksService;



@Service
public class UserchecksServiceImpl implements UserchecksService {
	
	@Autowired
	private UserchecksMapper uMapper;

	@Override
	public List<Userchecks> findUserchecks(Userchecks u) {
		// TODO Auto-generated method stub
		return uMapper.getUserchecks(u);
	}

	@Override
	public int findCount(Userchecks u) {
		// TODO Auto-generated method stub
		return uMapper.getCount(u);
	}

	@Override
	public int updateUserchecks(Userchecks u) {
		// TODO Auto-generated method stub
		return uMapper.updateUserchecks(u);
	}
	
	//gmw
	@Override
	public int insertUserchecks(Userchecks uc) {
		// TODO Auto-generated method stub
		return uMapper.addUserchecks(uc);
	}
	@Override
	public Userchecks findAll(UserchecksSearch c) {
		// TODO Auto-generated method stub
		return uMapper.getAll(c);
	}
	@Override
	public int updateUchecks(Userchecks u) {
		// TODO Auto-generated method stub
		return uMapper.xiugaiUchecks(u);
	}

}
